package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 pl
 * 
 * @author ruoyi
 * @date 2025-06-19
 */
public class Pl extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论表id */
    @Excel(name = "评论表id")
    private Long plId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String mc;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String nr;

    /** 评论时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sj;

    public void setPlId(Long plId) 
    {
        this.plId = plId;
    }

    public Long getPlId() 
    {
        return plId;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setMc(String mc) 
    {
        this.mc = mc;
    }

    public String getMc() 
    {
        return mc;
    }

    public void setNr(String nr) 
    {
        this.nr = nr;
    }

    public String getNr() 
    {
        return nr;
    }

    public void setSj(Date sj) 
    {
        this.sj = sj;
    }

    public Date getSj() 
    {
        return sj;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("plId", getPlId())
            .append("id", getId())
            .append("mc", getMc())
            .append("nr", getNr())
            .append("sj", getSj())
            .toString();
    }
}
